const { File } = require('./file');
const { Task } = require('./task');
const { Printer } = require('./printer');

// 设置关联关系
File.hasMany(Task, { foreignKey: 'fileId' });
Task.belongsTo(File, { foreignKey: 'fileId' });

Task.belongsTo(Printer, { foreignKey: 'printerId' });
Printer.hasMany(Task, { foreignKey: 'printerId' });

module.exports = {
  File,
  Task,
  Printer
}; 